import request from '@/utils/http'

// 获取检查记录
export function getCheckRecord(params: object) {
  return request.get({
    url: `/api/visit/record/list/check`,
    data: params
  })
}
// 获取检验记录
export function getExamineRecord(params: object) {
  return request.get({
    url: `/api/visit/record/list/examine`,
    data: params
  })
}
// 获取体检记录
export function getPeList(empi: string) {
  return request.get({
    url: `/api/visit/record/list/pe/${empi}`
  })
}
// 获取体检记录
export function getPeDetail(reportNo: string) {
  return request.get({
    url: `/api/visit/record/get/pe/${reportNo}`
  })
}
// 获取pdf
export function getPdf(params: object) {
  return request.get({
    url: `/api/patient/info/pdf/?empi=${params.empi}&reportNo=${params.reportNo}`
  })
}
